import {Component, OnInit} from '@angular/core';
import {ActivatedRoute} from "@angular/router";

@Component({
  selector: 'app-login',
  templateUrl: './create-page.component.html',
  styleUrls: ['./create-page.component.scss'],
})
export class CreatePage implements OnInit {

  constructor(
    private activatedRoute: ActivatedRoute,
  ) {
  }

  createType: string = "ask";

  ngOnInit() {
    this.initi();
  }

  initi() {
    this.activatedRoute.params.subscribe(params => {
      this.createType = params.type;
      console.debug(params);
    });
  }

}
